package org.mics.cyy.backUser.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.mics.jpa.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 登陆日志
 * @author mics
 * @date 2020年6月11日
 * @version  1.0
 */
@Data
@Entity
@Table(name = "t_end_user_login_log")
@EqualsAndHashCode(callSuper = false)
public class EndUserLoginLogDO extends BaseEntity {

    @Column(name = "end_user_id", nullable = false, columnDefinition = "varchar(64) comment '终端用户id' ")
    private String endUserId;

    @Column(name = "login_time", columnDefinition = "datetime comment '登录时间' ")
    private Date loginTime;
    
    @Column(name = "login_ip", nullable = false, columnDefinition = "varchar(255) comment '登录的ip' ")
    private String loginIp;

    @Column(name = "type", columnDefinition = "int(1) comment '类型(0.前台 1.后台)' ")
    private Integer type=0;

}
